package com.iemes.controller.warehouse;

import java.util.List;
import java.util.Map;

import javax.inject.Inject;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.iemes.annotation.SystemLog;
import com.iemes.controller.index.BaseController;
import com.iemes.entity.EnterstorageFormMap;
import com.iemes.entity.LabelprintFormMap;
import com.iemes.mapper.warehouse.EnterstorageMapper;
import com.iemes.mapper.warehouse.LabelprintMapper;
import com.iemes.plugin.PageView;
import com.iemes.util.Common;

@RequestMapping("/label_daily/")
@Controller
public class Label_DailyController extends BaseController {
	
	@Inject
	private LabelprintMapper labelprintMapper;

	// 查看补打标签表，显示按钮。
	@RequestMapping("label_daily")
	public String label_daily(Model model) {
		model.addAttribute("res", findByRes());
		return Common.BACKGROUND_PATH + "/warehouse/label_daily_list";
	}

	// 补打标签表分页
	@ResponseBody
	@RequestMapping("label_daily_findByPage")
	public PageView findByPage(String pageNow, String pageSize) throws Exception {
		LabelprintFormMap labelprintFormMap=getFormMap(LabelprintFormMap.class);
		List<Map<String, Object>> label=labelprintMapper.getAllPrint(labelprintFormMap);
		LuogicPaging(pageNow, pageSize, label);
		return pageView;
	}
}






